<?php
session_start();
$_SESSION['id'] = 1;
//include 'functions/security_log.php';
include "functions/init_bdd.php";
include 'functions/fct_account.php';

if (isset($_GET['id']))
	$id = $_GET['id'];
else $id = 0;
$my_id =  $_SESSION['id'];

?>
<html>
	<head>
		<title>My Zone</title>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	
		<script type="text/javascript" src="../javascript/jquery-1.7.1.js"></script>
		<script type="text/javascript" src="../javascript/functions.js"></script>
		<script type="text/javascript" src="../javascript/pop-up.js"></script>
	
		<link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" media="screen" />
		
	</head>
	<body>
		<div id="page">
			<h2>My Zone</h2>
			<div id="feed">
				<a class='follow' href='#' id='$id'><img src='../img/follow.png'></img></a>
				<a class='unfollow' href='#' id='$id' style='display:none;'><img src='../img/unfollow.png'></img></a>
				<?php include "feed.php"; ?>
			</div>
			<div id="zone">
				<?php include "add_article.html"; ?>
				<?php include "articles.php"; ?>
			</div>
		</div>
</body>
</html>